package com.guigu.tms.commons.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author zwj
 * @since 2022-10-11
 */
@TableName("pd_auth_user")
public class AuthUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 账号
     */
    private String account;

    /**
     * 姓名
     */
    private String name;

    /**
     * 组织ID
#c_core_org
     */
    private Long orgId;

    /**
     * 岗位ID
#c_core_station
     */
    private Long stationId;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机
     */
    private String mobile;

    /**
     * 性别
#Sex{W:女;M:男;N:未知}
     */
    private String sex;

    /**
     * 启用状态 1启用 0禁用
     */
    private Boolean status;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 工作描述	比如：  市长、管理员、局长等等   用于登陆展示
     */
    private String workDescribe;

    /**
     * 最后一次输错密码时间
     */
    private LocalDateTime passwordErrorLastTime;

    /**
     * 密码错误次数
     */
    private Integer passwordErrorNum;

    /**
     * 密码过期时间
     */
    private LocalDateTime passwordExpireTime;

    /**
     * 密码
     */
    private String password;

    /**
     * 最后登录时间
     */
    private LocalDateTime lastLoginTime;

    /**
     * 创建人id
     */
    private Long createUser;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新人id
     */
    private Long updateUser;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }
    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    public String getWorkDescribe() {
        return workDescribe;
    }

    public void setWorkDescribe(String workDescribe) {
        this.workDescribe = workDescribe;
    }
    public LocalDateTime getPasswordErrorLastTime() {
        return passwordErrorLastTime;
    }

    public void setPasswordErrorLastTime(LocalDateTime passwordErrorLastTime) {
        this.passwordErrorLastTime = passwordErrorLastTime;
    }
    public Integer getPasswordErrorNum() {
        return passwordErrorNum;
    }

    public void setPasswordErrorNum(Integer passwordErrorNum) {
        this.passwordErrorNum = passwordErrorNum;
    }
    public LocalDateTime getPasswordExpireTime() {
        return passwordExpireTime;
    }

    public void setPasswordExpireTime(LocalDateTime passwordExpireTime) {
        this.passwordExpireTime = passwordExpireTime;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public LocalDateTime getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(LocalDateTime lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "AuthUser{" +
            "id=" + id +
            ", account=" + account +
            ", name=" + name +
            ", orgId=" + orgId +
            ", stationId=" + stationId +
            ", email=" + email +
            ", mobile=" + mobile +
            ", sex=" + sex +
            ", status=" + status +
            ", avatar=" + avatar +
            ", workDescribe=" + workDescribe +
            ", passwordErrorLastTime=" + passwordErrorLastTime +
            ", passwordErrorNum=" + passwordErrorNum +
            ", passwordExpireTime=" + passwordExpireTime +
            ", password=" + password +
            ", lastLoginTime=" + lastLoginTime +
            ", createUser=" + createUser +
            ", createTime=" + createTime +
            ", updateUser=" + updateUser +
            ", updateTime=" + updateTime +
        "}";
    }
}
